package com.example.demo02.utils;

import cn.hutool.core.collection.CollectionUtil;
import cn.hutool.core.collection.ListUtil;
import org.apache.poi.ss.formula.functions.T;

import java.util.ArrayList;
import java.util.List;

public class NewOldIdCompareUtils<T> {
    private List<T> insertIds;
    private List<T> updateIds;
    private List<T> deleteIds;
    public NewOldIdCompareUtils(List<T> oldIds,List<T> newIds){
        List<T> oldIdList= CollectionUtil.isNotEmpty(oldIds)?oldIds:new ArrayList<>();
        List<T> newIdList= CollectionUtil.isNotEmpty(oldIds)?newIds:new ArrayList<>();
        List<T> allIdList = CollectionUtil.addAllIfNotContains(oldIdList, newIdList);
        allIdList.forEach(id->{

        });
    }
}
